package com.zshan.clinic.mini;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringBootApplication
@Slf4j
@MapperScan(
        basePackages = {"com.zshan.clinic.database.dao","com.zshan.clinic.admin.mapper"}
)
@EnableTransactionManagement(proxyTargetClass = true) //启注解事务管理，等同于xml配置方式的 <tx:annotation-driven />
@EnableAspectJAutoProxy(exposeProxy = true)
@EnableScheduling
/**
 * 用户服务启动类
 */
@ComponentScan(basePackages = {"com.zshan.clinic"})
public class Runner {

    public static void main(String[] args) {
        SpringApplication.run(Runner.class, args);
        log.info("                            _ooOoo_  					  ");
        log.info("                           o8888888o                     ");
        log.info("                           88\" . \"88                   ");
        log.info("                           (| -_- |)                     ");
        log.info("                            O\\ = /O                     ");
        log.info("                     / _||||| -:- |||||- \\              ");
        log.info("                       | | \\\\\\ - /// | |              ");
        log.info("                     | \\_| ''\\---/'' | |               ");
        log.info("                      \\ .-\\__ `-` ___/-. /             ");
        log.info("                   ___`. .' /--.--\\ `. . __             ");
        log.info("                .\"\" '< `.___\\_<|>_/___.' >'\"\".      ");
        log.info("               | | : `- \\`.;`\\ _ /`;.`/ - ` : | |      ");
        log.info("                 \\ \\ `-. \\_ __\\ /__ _/ .-` / /       ");
        log.info("         ======`-.____`-.___\\_____/___.-`____.-'=====   ");
        log.info("                            `=---='                      ");
        log.info("                                                         ");
        log.info("         ............................................    ");
        log.info("                  佛祖保佑             永无BUG            ");
    }
}
